package com.zyl.blog.common.domain.data.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog
 * @Package: com.zyl.common.domain.data.bean
 * @ClassName: Operator
 * @Description: 操作用户实体类
 * @Author FinalFantasy
 * @Date 2025/2/17-17:59
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Operator {

    /** 用户ID */
    private Long userId;

    /** 用户名 */
    private String username;

    /** 真实姓名 */
    private String realName;

    /** 所属部门 */
    private String deptName;

    public static Operator anonymous() {
        return new Operator(1L, "SYSTEM", "管理员", "系统");
    }
}